lexer grammar BlocksLexer;

@header {
package org.moflon.moca.blocks.parser;
}
// lexer rules:
START: 'start';
STOP: 'stop' ;

OPEN: '[';
CLOSE: ']';

COMMENT: '//' .* '\n' {skip();};
WS: (' ' | '\n' | '\r' | '\t')+ { skip(); };

TO: '=>';
DOT: '.';

fragment
DIGIT : '0'..'9';

INTEGER : DIGIT DIGIT*;

PORT: 'Port';

STRING : 'a'..'z' | 'A'..'Z';
